Skip to content

feat(services/ghac): Allow explicitly setting ghac endpoint/token, not just env vars - #3177

Merged
Xuanwo merged 2 commits into
apache:mainfrom
huonw:huonw/ghac-auth
Sep 25, 2023
Merged

feat(services/ghac): Allow explicitly setting ghac endpoint/token, not just env vars#3177
Xuanwo merged 2 commits into
apache:mainfrom
huonw:huonw/ghac-auth

Conversation

@huonw

@huonw huonw commented Sep 25, 2023

Copy link
Copy Markdown
Contributor

This adjusts the GitHub Actions Cache service to allow explicitly setting the URL (via .endpoint(...)) and the runtime token (via .runtime_token(...)), in addition to the defaults of reading the ACTIONS_CACHE_URL and ACTIONS_RUNTIME_TOKEN environment variables.

This gives more control over the use of this service, such as in the Pants build system (I'm adding support in pantsbuild/pants#19831): for Pants, the caching system runs in a background daemon that is passed some configuration by a client, and it's nice to not have to propagate environment variables into the daemon, instead, it's nicer for the client to read the environment and pass the values as 'normal' configuration.

@huonw
huonw requested a review from Xuanwo as a code owner September 25, 2023 08:20
@Xuanwo Xuanwo changed the title Allow explicitly setting ghac endpoint/token, not just env vars feat(services/ghac): Allow explicitly setting ghac endpoint/token, not just env vars Sep 25, 2023
@github-actions github-actions Bot added the releases-note/feat The PR implements a new feature or has a title that begins with "feat" label Sep 25, 2023

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Mostly LGTM, just need to make our CI happy.

@huonw

huonw commented Sep 25, 2023

Copy link
Copy Markdown
Contributor Author

Oops, fixed. Thanks!

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@Xuanwo
Xuanwo merged commit d1f8de4 into apache:main Sep 25, 2023
@huonw
huonw deleted the huonw/ghac-auth branch September 25, 2023 22:40
huonw pushed a commit to pantsbuild/pants that referenced this pull request Oct 22, 2023
The pull requests apache/opendal#3163
and apache/opendal#3177 have been
merged and included in OpenDAL version 0.41. This PR will update OpenDAL
to version 0.41, allowing us to rely on tags rather than a specific
GitHub commit.

Signed-off-by: GitHub <noreply@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants